package com.owc.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author xiaom
 * @Date 2020/2/24 16:35
 * @Version 1.0.0
 * @Description <Base mapper>
 **/
public interface BaseMapper<DOMAIN,ID> {
    int deleteByPrimaryKey(ID id);

    int insert(DOMAIN domain);

    int insertOrUpdate(DOMAIN domain);

    int insertOrUpdateSelective(DOMAIN domain);

    int insertSelective(DOMAIN domain);

    DOMAIN selectByPrimaryKey(ID id);

    int updateByPrimaryKeySelective(DOMAIN domain);

    int updateByPrimaryKey(DOMAIN domain);

    int updateBatch(List<DOMAIN> list);

    int updateBatchSelective(List<DOMAIN> list);

    int batchInsert(@Param("list") List<DOMAIN> list);
}
